package com.fieldchain.ex.fa100.utils.chart.utils.zb;

import com.github.mikephil.charting.data.CombinedData;

import java.util.List;

/**
 * Created by biyunlong
 * Email: 1225198434@qq.com
 * Data:  2018/10/15
 */
public class ZbManager {
    public CombinedData getData(List<List<String>> list, int index) {
        if (index == 0) {
            return new MacdParse().getData(list);
        } else if (index == 1) {
            return new EXPMAParse().getData(list);
        } else if (index == 2) {
            return new BOLLParse().getData(list);
        } else if (index == 3) {
            return new DmiParse().getData(list);
        } else if (index == 4) {
            return new KDJParse().getData(list);
        } else if (index == 5) {
            return new RSIParse().getData(list);
        } else if (index == 6) {
            return new WrParse().getData(list);
        }

        return new MacdParse().getData(list);
    }

}
